import request from '../index.js'

export const getBanerList = (param) => {
  param.status = '0'
  param.sortField = 'sort'
  param.sort = false
  return request.get('cloudApi/cms/banner/getBannerList', param)
}

export const getTestData = (params) => {
  // return request.get('/image/v3/homepage/vertical', params)
  return request.get('/author_recommend', params)
}

//修改密码
export const updatePassword = data => {
  // return request.get('/image/v3/homepage/vertical', params)
  return request.post('/api/auth/updatePassword', data)
}
//

//系统设置接口
export const appletExtraDict = param => {
  return request.get('/api/common/appletExtraDict', param)
}

//菜单接口
export const buildMenus = param => {
  return request.get('/api/appletIndex/buildMenus', param)
}
//可领取优惠券
export const customerUnCollectCouponList = param => {
  return request.get('/api/dropDown/customerUnCollectCouponList', param)
}
//领取优惠券
export const collect = param => {
  return request.post('/api/appletActiveCustomerCoupon/collect', param)
}
//已领取优惠券
export const customerCollectCouponList = param => {
  return request.get('/api/appletActiveCustomerCoupon/customerCollectCouponList', param)
}
